﻿using CozeDomain.Entities;
using CozeDto.SaleHistoryDtos;
using D.UtilCore.Dtos;
using D.UtilFreesqlOrm;

namespace CozeDomain.IServices
{
    /// <summary>
    /// 分销记录历史接口
    /// </summary>
    public interface ISaleHistoryService : IBaseService<SaleHistoryEntity>
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="reqAddSaleHistory"></param>
        /// <returns></returns>
        Task<ApiResult<int>> AddSaleHistoryAsync(ReqAddSaleHistory reqAddSaleHistory);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<ApiResult<int>> DeleteSaleHistoryAsync(List<string> ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="reqUpdateSaleHistory"></param>
        /// <returns></returns> 
        Task<ApiResult<int>> UpdateSaleHistoryAsync(ReqUpdateSaleHistory reqUpdateSaleHistory);

        /// <summary>
        /// 单个查询
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns> 
        Task<ApiResult<RepSaleHistoryInfo>> GetSaleHistoryAsync(string id);

        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="reqQuerySaleHistoryPage"></param>
        /// <returns></returns>
        Task<ApiResult<PageModel<RepSaleHistoryInfo>>> QuerySaleHistoryPagesAsync(ReqQuerySaleHistoryPage reqQuerySaleHistoryPage);
    }
}
